package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cinema_configs")
@ApiModel(value="CinemaConfigsEntity对象", description="")
public class CinemaConfigEntity implements Serializable {
    @ApiModelProperty(value = "配置 ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "键：wx_group_qrcode 影迷群, wx_official_account_qrcode 公众号")
    private String key;
    
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "影院 ID")
    private Long cinemaId;

    @ApiModelProperty(value = "租户 ID")
    private Long tenantId;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
    
    @TableLogic(value = "null", delval = "now()")
    @TableField(select = false)
    private LocalDateTime deletedAt;
}
